<!--
 * @description: 设定角色
 * @fileName: SettingRole
 * @author: 17076
 * @date: 2025/3/3-下午1:52
 * @version: V1.0.0
-->

<template>
  <cs-dialog
    :dialog="dialogOption"
  >
    <div slot="content">
      <div class="flex-row item">
        <div class="flex-row" style="align-items: center">
          <img src="@/assets/write/AIshengcheng@2x.png"/>
          <span class="title">AI生成角色</span>
        </div>
        <span>暂未开放</span>
      </div>
      <div class="flex-row item" @click="handleGo">
        <div class="flex-row" style="align-items: center">
          <img src="@/assets/write/shangchaun@2x.png"/>
          <span class="title">上传已有角色</span>
        </div>
        <span class="go-title">去上传→</span>
      </div>
    </div>
  </cs-dialog>
</template>

<script>
export default {
  name: 'SettingRole',
  data() {
    return {
      dialogOption: {
        width: '30%',
        title: {
          title: '角色设定'
        },
        show: false,
        hiddenFooter: true
      }
    }
  },
  methods: {
    show() {
      this.dialogOption.show = true
    },
    handleGo() {
      this.dialogOption.show = false
      this.$emit('go', '2')
    }
  }
}
</script>

<style scoped lang="scss">
.item {
  border: 1px solid #39414E;
  align-items: center;
  justify-content: space-between;
  background: #272C36;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 12px;
  margin-bottom: 20px;
  color: white;
  cursor: pointer;
  &:hover {
    border-color: $base-color-default;
    &:nth-child(1) {
      cursor: not-allowed;
    }
    .go-title {
      color: $base-color-default;
    }
  }
  .title {
    margin-left: 20px;
    font-weight: bold;
    font-size: 18px;
  }
  img {
    width: 100px;
    height: 100px;
  }
}
</style>
